import 'package:flutter/material.dart';
import 'package:flutter_demo2/material-demo/table_demo/data_table2_demo.dart';

import 'data_table_demo.dart';

class TableDemo extends StatefulWidget {
  const TableDemo({Key? key}) : super(key: key);

  @override
  State<TableDemo> createState() => _TableDemoState();
}

class _TableDemoState extends State<TableDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('TableDemo'),
      ),
      body: SingleChildScrollView(
        child: Center(
          child: Column(
            children: [
              DataTableDemo(),
              // SizedBox(
              //   height: 640 + defaultPadding * 2, // 需要给表格加一个高度，表格内部已经做了超出高度的滚动
              //   child: DataTable2Demo(),
              // ),
            ],
          ),
        ),
      ),
    );
  }
}
